﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:JVMTI_CORE_SHELL"
        xmlns:converters="clr-namespace:JVMTI_CORE_SHELL.Converters"
        xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
        xmlns:oxy="http://oxyplot.org/wpf"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
        x:Class="JVMTI_CORE_SHELL.MainWindow"
        Title="intelliSys LENS" Height="730" Width="1360" WindowStyle="None" WindowStartupLocation="CenterScreen" MinWidth="640">
    <Window.Resources>
        <Style x:Key="ListBoxItemStyle2" TargetType="{x:Type ListBoxItem}">
            <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
            <Setter Property="FocusVisualStyle" Value="{x:Null}" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBoxItem}">
                        <ControlTemplate.Resources>
                            <Storyboard x:Key="OnMouseLeftButtonDown1">
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Border">
                                    <EasingDoubleKeyFrame KeyTime="0" Value="0.98"/>
                                    <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1">
                                        <EasingDoubleKeyFrame.EasingFunction>
                                            <CircleEase EasingMode="EaseOut"/>
                                        </EasingDoubleKeyFrame.EasingFunction>
                                    </EasingDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                        </ControlTemplate.Resources>
                        <Grid x:Name="Border"  Margin="0" SnapsToDevicePixels="False"  RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <ContentPresenter Width="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type ScrollContentPresenter}, Mode=FindAncestor}}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <EventTrigger RoutedEvent="UIElement.PreviewMouseLeftButtonDown">
                                <BeginStoryboard Storyboard="{StaticResource OnMouseLeftButtonDown1}"/>
                            </EventTrigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Style.Triggers>
                <Trigger Property="IsKeyboardFocusWithin" Value="true">
                    <Setter Property="IsSelected" Value="true" />
                </Trigger>
            </Style.Triggers>
        </Style>
        <converters:ContentionStatsConverter x:Key="cntConn"/>
        <converters:ContentionStatsPctgConverter x:Key="pctgConn"/>
        <converters:LifeCycleToPlotModel x:Key="conn"/>
        <converters:LifeCycleToPlotVisibilityModel x:Key="plotVisibility"/>
        <converters:LengthToVisibilityConverter x:Key="len2Visibility"/>
        <converters:ValueToVisibilityConverter x:Key="val2Visibility"/>
        <converters:DepthToMarginConverter x:Key="depth2Margin"/>
        <converters:DataContextToRelatedEventsConverter x:Key="context2events"/>
        <Storyboard x:Key="transitIn">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="grid2">
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="400"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid2">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="busy">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="busyMaskGrid">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="busyMaskGrid">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="idle">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="busyMaskGrid">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="busyMaskGrid">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>
    <Window.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource transitIn}"/>
            <BeginStoryboard Storyboard="{StaticResource busy}"/>
            <BeginStoryboard Storyboard="{StaticResource idle}"/>
        </EventTrigger>
    </Window.Triggers>
    <Border x:Name="border" BorderThickness="2" BorderBrush="{DynamicResource AccentBrush}">
        <Border.RenderTransform>
            <TransformGroup>
                <ScaleTransform/>
                <SkewTransform/>
                <RotateTransform/>
                <TranslateTransform/>
            </TransformGroup>
        </Border.RenderTransform>
        <Grid Margin="0">
            <Grid x:Name="grid2" RenderTransformOrigin="0.5,0.5" Margin="0,2,0,0">
                <Grid.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Grid.RenderTransform>
                <TabControl x:Name="tabCtrl" BorderThickness="0" SelectedIndex="0" Background="{x:Null}" RenderTransformOrigin="0.5,0.5">
                    <TabControl.Resources>
                        <DataTemplate x:Key="lifeCycleViewTemplate">
                            <Expander Expanded="Expander_Expanded" Margin="2,0,0,0">
                                <Expander.Header>
                                    <DockPanel HorizontalAlignment="Stretch" Height="30" LastChildFill="True">
                                        <TextBlock FontFamily="Segoe UI Light" FontSize="14" Width="150" TextWrapping="Wrap" Margin="8,0,0,0"  VerticalAlignment="Center" Text="{Binding DisplayName}" />
                                        <local:LifeEventVisualizer  x:Name="visualizer" VerticalAlignment="Center" Width="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}" HorizontalAlignment="Stretch" DataContext="{Binding}"/>
                                    </DockPanel>
                                </Expander.Header>
                                <TabControl BorderThickness="0">
                                    <TabItem Header="STACKTRACE" FontSize="12" BorderThickness="0" Background="{x:Null}">
                                        <ListBox ItemsSource="{Binding SelectedValue.StackTrace, ElementName=visualizer, Mode=OneWay}">
                                            <ListBox.ItemTemplate>
                                                <DataTemplate>
                                                    <Label Margin="{Binding Depth, Converter={StaticResource depth2Margin}}">
                                                        <Hyperlink Click="Hyperlink_Click">
                                                            <InlineUIContainer>
                                                                <TextBlock FontSize="12" Text="{Binding}"/>
                                                            </InlineUIContainer>
                                                        </Hyperlink>
                                                    </Label>
                                                </DataTemplate>
                                            </ListBox.ItemTemplate>
                                        </ListBox>
                                    </TabItem>
                                    <TabItem Header="RESOURCE VIEW" FontSize="12" BorderThickness="0" Background="{x:Null}">
                                        <ListBox ItemsSource="{Binding SelectedValue, Converter={StaticResource context2events}, ElementName=visualizer, Mode=OneWay}">
                                            <ListBox.ItemsPanel>
                                                <ItemsPanelTemplate>
                                                    <StackPanel Orientation="Horizontal" />
                                                </ItemsPanelTemplate>
                                            </ListBox.ItemsPanel>
                                            <ListBox.ItemTemplate>
                                                <DataTemplate>
                                                    <Label>
                                                        <Hyperlink Click="Hyperlink_Click_1">
                                                            <TextBlock FontSize="12" Text="{Binding}"/>
                                                        </Hyperlink>
                                                    </Label>
                                                </DataTemplate>
                                            </ListBox.ItemTemplate>
                                        </ListBox>
                                    </TabItem>
                                    <TabItem Header="NAVIGATION" FontSize="12" BorderThickness="0" Background="{x:Null}">
                                        <Border Height="Auto" BorderThickness="1" BorderBrush="Gray" >
                                    		<StackPanel Orientation="Horizontal" DataContext="{Binding SelectedValue, ElementName=visualizer, Mode=OneWay}" Height="49">
                                    			<Button Click="Focus" ToolTip="Focus on this event" Height="29" Width="29" Margin="10,10,0,10" Style="{DynamicResource ButtonStyle1}" BorderThickness="2">
                                    				<Grid Height="29" Width="29" HorizontalAlignment="Center" VerticalAlignment="Center">
                                    					<Path HorizontalAlignment="Left" Height="13.208" Margin="7.75,8.202,0,0" StrokeThickness="0" VerticalAlignment="Top" Width="13.21" Data="M2.3066743E-13,6.604 L0.99999994,6.604 C0.99999905,9.6990871 3.5094433,12.208152 6.605,12.208152 L6.605,13.208 C2.957159,13.208 -9.5367386E-07,10.251288 2.3066743E-13,6.604 z M6.7527852,4.8077225 C7.1366692,4.8077225 7.5205526,4.9541692 7.8134456,5.2470622 8.3992319,5.8328485 8.3992319,6.7825961 7.8134456,7.3683824 7.2276592,7.9541688 6.2779117,7.9541688 5.6921248,7.3683824 5.1063385,6.7825961 5.1063385,5.8328485 5.6921253,5.2470622 5.9850187,4.9541692 6.3689022,4.8077225 6.7527852,4.8077225 z M6.605,0 C10.252841,-4.1726139E-08 13.210001,2.9567113 13.21,6.604 L12.21,6.604 C12.210001,3.5089125 9.7005568,0.99984856 6.605,0.99984856 z" RenderTransformOrigin="0.499999998556142,0.49999999148881" Stretch="Fill">
                                    						<Path.RenderTransform>
                                    							<TransformGroup>
                                    								<ScaleTransform/>
                                    								<SkewTransform/>
                                    								<RotateTransform Angle="-45"/>
                                    								<TranslateTransform/>
                                    							</TransformGroup>
                                    						</Path.RenderTransform>
                                    					</Path>
                                    				</Grid>
                                    			</Button>
                                    			<Button Click="Focus" ToolTip="Go to raw source" Height="29" Width="29" Margin="10,10,0,10" Style="{DynamicResource ButtonStyle1}" BorderThickness="2">
                                    				<Grid Height="29" Width="29" HorizontalAlignment="Center" VerticalAlignment="Center">
                                    					<Path Data="M1.4670002,12.505 L1.4670002,14.505 9.0080005,14.505 9.0080005,12.505 z M1.4670002,9.9090004 L1.4670002,11.909 9.0080005,11.909 9.0080005,9.9090004 z M1.4670002,7.1009998 L1.4670002,9.099 9.0080005,9.099 9.0080005,7.1009998 z M1.4670002,4.415 L1.4670002,6.415 9.0080005,6.415 9.0080005,4.415 z M1.467,1.4209999 L1.467,3.421 9.0080005,3.421 9.0080005,1.4209999 z M0.5,0.5 L9.7500001,0.5 9.7500001,15.189 0.5,15.189 z" HorizontalAlignment="Left" Height="15.689" Margin="9.419,7.101,0,0" Stretch="Fill" StrokeThickness="1" VerticalAlignment="Top" Width="10.25"/>
                                    				</Grid>
                                    			</Button>
                                            
                                    		</StackPanel>
                                    	</Border>
                                    </TabItem>
                                </TabControl>
                            </Expander>
                        </DataTemplate>
                    </TabControl.Resources>
                    <TabControl.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </TabControl.RenderTransform>
                    <TabItem x:Name="title"  Header="sample.orca" BorderBrush="{x:Null}" Background="{x:Null}" FontSize="21.333" FontFamily="Segoe UI Light" Foreground="Black" Margin="0,0,-77,0">
                        <Grid PreviewKeyDown="Grid_KeyDown">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition MinWidth="700" Width="1000"/>
                                    <ColumnDefinition Width="20"/>
                                    <ColumnDefinition MinWidth="200" Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid Grid.Column="0" Margin="0,43.5,0,0">
                                    <ListBox IsSynchronizedWithCurrentItem="True"  x:Name="lifeCycleView" ItemContainerStyle="{StaticResource ListBoxItemStyle2}"  ItemTemplate="{StaticResource lifeCycleViewTemplate}" VirtualizingPanel.ScrollUnit="Pixel" Background="Transparent" HorizontalContentAlignment="Stretch" BorderThickness="0,0,0.5,0" BorderBrush="{x:Null}" Margin="16,52,6.5,17.5"/>
                                    <TextBlock x:Name="timeSliceInfo" HorizontalAlignment="Left" Height="23" Margin="16,-16,0,0" TextWrapping="Wrap" Text="Thread view gives a summary of execution life cycle events for each threads." VerticalAlignment="Top" Width="644" FontFamily="/JVMTI-CORE-SHELL;component/Fonts/#Segoe UI Light" FontSize="16">
                                        <TextBlock.Foreground>
                                            <SolidColorBrush Color="{DynamicResource Gray}"/>
                                        </TextBlock.Foreground>
                                    </TextBlock>
                                    <local:RangeSlider x:Name="timeSlicer" ValueChanged="timeSlicer_ValueChanged"  Margin="16,9,88,0" VerticalAlignment="Top" Height="15" LowerValue="0" UpperValue="100" />
                                    <Button Click="filterByTime" x:Name="resetTime" BorderThickness="2" VerticalAlignment="Top" FontFamily="Segoe UI" Style="{DynamicResource ButtonStyle1}" Height="29" HorizontalAlignment="Right" Width="29" Margin="0,1,0,0">
                                        <Grid RenderTransformOrigin="0.5,0.5" Width="19" Height="19">
                                            <Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="{DynamicResource MinusSign}"/>
                                        </Grid>
                                    </Button>
                                    <Button Click="filterByTime" ToolTip="apply selection in timeWarp™" x:Name="applyTimeSelection" BorderThickness="2" Margin="0,1,40,0" VerticalAlignment="Top" FontFamily="Segoe UI" Style="{DynamicResource ButtonStyle1}" Height="29" HorizontalAlignment="Right" Width="29">
                                        <Grid RenderTransformOrigin="0.5,0.5" Width="19" Height="19">
                                            <Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="{DynamicResource TickSign}" RenderTransformOrigin="0.5,0.5" Margin="5.845,1.149,4.845,3.149">
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform/>
                                                        <SkewTransform/>
                                                        <RotateTransform Angle="45"/>
                                                        <TranslateTransform/>
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Grid>
                                    </Button>
                                </Grid>
                                <GridSplitter ResizeBehavior="PreviousAndNext" Grid.Column="1" Width="2" HorizontalAlignment="Stretch" Height="300" Margin="0"/>
                                <Grid Grid.Column="2" Margin="0,43.5,4,0" >
                                    <StackPanel Orientation="Vertical" Visibility="{Binding SelectedValue, Converter={StaticResource val2Visibility}, ElementName=lifeCycleView, Mode=OneWay}">
                                        <TextBlock FontSize="22" Margin="0,0,0,0"><Run Text="smart panel [" /><Run Text=" "/><Run Text="{Binding SelectedValue.DisplayName, ElementName=lifeCycleView}"/><Run Text=" "/><Run Text="]"/></TextBlock>
                                        <oxy:PlotView x:Name="plotView" TitleFontSize="14" Margin="50,0,0,20" HorizontalAlignment="Left" Visibility="{Binding SelectedValue.ResourceContentionBreakDown, Converter={StaticResource plotVisibility}, ElementName=lifeCycleView}" HorizontalContentAlignment="Left" Width="150" Height="150" Model="{Binding SelectedValue.ResourceContentionBreakDown, Converter={StaticResource conn}, ElementName=lifeCycleView, Mode=OneWay}"/>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="# contention   " FontSize="14"/>
                                            <TextBlock Text="{Binding SelectedValue.KeyEvents, Converter={StaticResource cntConn}, ElementName=lifeCycleView}" FontSize="14"/>
                                        </StackPanel>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="% contention   " FontSize="14"/>
                                            <TextBlock Text="{Binding SelectedValue.KeyEvents, Converter={StaticResource pctgConn}, ElementName=lifeCycleView}" FontSize="14"/>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel x:Name="decoration" Orientation="Horizontal" RenderTransformOrigin="0.5,0.5" Opacity="0.2" IsHitTestVisible="False" VerticalAlignment="Bottom" Margin="0">
                                        <StackPanel.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform/>
                                                <SkewTransform/>
                                                <RotateTransform/>
                                                <TranslateTransform/>
                                            </TransformGroup>
                                        </StackPanel.RenderTransform>
                                        <Rectangle x:Name="rectangle" Margin="0,263,0,0" Width="50" RenderTransformOrigin="0.5,1" Fill="#F2DADADA">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle2" Width="50" Margin="0,54,0,0" RenderTransformOrigin="0.5,1" Fill="#E5939393">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle3" Width="50" Margin="0,163.5,0,0" RenderTransformOrigin="0.5,1" Fill="#E5E5E5E5">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle4" Width="50" RenderTransformOrigin="0.5,1" Fill="#E5878787">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle7" Width="44" Margin="0,210,0,0" RenderTransformOrigin="0.5,1" Fill="#E5DCDCDC">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle3_Copy" Width="50" Margin="0,163.5,0,0" RenderTransformOrigin="0.5,1" Fill="#E5E5E5E5">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle5_Copy" Width="44" Margin="0,87,0,0" RenderTransformOrigin="0.5,1" Fill="#E5A9A9A9">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle6_Copy" Width="44" Margin="0,27,0,0" RenderTransformOrigin="0.5,1" Fill="#E5EDEDED">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle7_Copy" Width="44" Margin="0,210,0,0" RenderTransformOrigin="0.5,1" Fill="#E5DCDCDC">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle1_Copy" Width="50" RenderTransformOrigin="0.5,1" Fill="#F2F3F3F3">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle2_Copy" Width="50" Margin="0,54,0,0" RenderTransformOrigin="0.5,1" Fill="#E5939393">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle3_Copy1" Width="50" Margin="0,163.5,0,0" RenderTransformOrigin="0.5,1" Fill="#E5E5E5E5">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle4_Copy" Width="50" RenderTransformOrigin="0.5,1" Fill="#E5DEDEDE">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle5_Copy1" Width="44" Margin="0,87,0,0" RenderTransformOrigin="0.5,1" Fill="#E5A9A9A9">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle6_Copy1" Width="44" Margin="0,27,0,0" RenderTransformOrigin="0.5,1" Fill="#E5EDEDED">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle7_Copy1" Width="44" Margin="0,210,0,0" RenderTransformOrigin="0.5,1" Fill="#E5DCDCDC">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="rectangle8_Copy" Width="44" Margin="0,139.5,0,0" RenderTransformOrigin="0.5,1" Fill="#E5939393">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                    </StackPanel>
                                </Grid>
                            </Grid>
                            <StackPanel x:Name="viewGroup1Panel" Margin="15.333,0,914,0" VerticalAlignment="Top" Orientation="Horizontal">
                                <TextBlock x:Name="_viewGroup1_1" MouseLeftButtonDown="switchView" HorizontalAlignment="Left" Margin="0" TextWrapping="Wrap" Text="THREAD" VerticalAlignment="Center" FontSize="16" FontFamily="Segoe UI" Style="{DynamicResource ShineTextBlock}">
                                    <TextBlock.Foreground>
                                        <SolidColorBrush Color="{DynamicResource Accent}"/>
                                    </TextBlock.Foreground>
                                </TextBlock>
                                <TextBlock x:Name="_viewGroup1_2" MouseLeftButtonDown="switchView" HorizontalAlignment="Left" Margin="15,0,0,0" TextWrapping="Wrap" Text="RESOURCE" VerticalAlignment="Center" FontSize="16" FontFamily="Segoe UI" Style="{DynamicResource ShineTextBlock}"/>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                </TabControl>
            </Grid>
            <ProgressBar x:Name="workerIndicator" Margin="0" Value="100" IsIndeterminate="True" Background="{x:Null}" BorderBrush="{x:Null}" VerticalAlignment="Top" Visibility="Collapsed">
                <ProgressBar.Foreground>
                    <SolidColorBrush Color="{DynamicResource Accent}"/>
                </ProgressBar.Foreground>
            </ProgressBar>
            <Grid x:Name="busyMaskGrid" Background="#CCFFFFFF" Visibility="Collapsed"/>
            <TextBlock MouseLeftButtonDown="settingPanel_MouseLeftButtonDown" x:Name="settingPanel" Height="18.625" Margin="0,18,18,0" TextWrapping="Wrap" Text="SETTINGS" VerticalAlignment="Top" HorizontalAlignment="Right" Style="{DynamicResource ShineTextBlock}" Foreground="Gray"/>
            <Button x:Name="switchButton" Click="switchButton_Click" HorizontalAlignment="Left" Height="29" Margin="18.167,10.478,0,0" VerticalAlignment="Top" Width="29" Style="{DynamicResource ButtonStyle1}" BorderThickness="2">
				<Grid Width="29" Height="29" HorizontalAlignment="Center" VerticalAlignment="Center" d:IsLocked="True">
					<Path Data="M0.74999964,7.2499999 L8.4612331,7.2499999 14.026631,7.2499999 16.75,7.2499999 12.605617,11.061 10.636191,9.2499999 0.74999964,9.2499999 z M4.1443834,0 L6.1138086,1.8109999 16,1.8109999 16,3.811 8.2887669,3.811 2.7233691,3.811 0,3.811 z" HorizontalAlignment="Left" Height="11.061" Margin="6.208,8.69,0,0" Stretch="Fill" StrokeThickness="0" VerticalAlignment="Top" Width="16.75"/>
            	</Grid>
			</Button>
        </Grid>
    </Border>
</Window>
